
package combat.example.server.protocol.implementation;

import combat.example.protocol.interfaces.ScenarioInt;


/**
 * @author Laurens Andriessen
 * @version 1.0
 */
public abstract class Scenario implements ScenarioInt {

	// TODO Remove abstract modifier on line 11 and uncomment line 25 (so the
	// code works again)
	// TODO Implement other members and methods from ScenarioInt

	protected Scenario() {}
	private static Scenario _instance = null;

	/**
	 * Return the currently running simulation object. If there is no
	 * simulation: create one, and only one.
	 * @author Laurens Andriessen
	 * @return Scenario
	 */
	// http://radio-weblogs.com/0122027/stories/2003/10/20/implementingTheSingletonPatternInJava.html
	public static Scenario instance() {
		return /* (_instance == null) ? new Scenario() : */_instance;
	}
}
